package com.aaa.controller;


import com.aaa.entity.CourseIntroduce;
import com.aaa.service.ICourseIntroduceService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zyd
 * @since 2021-03-24
 */
@RestController
@RequestMapping("/course-introduce")
public class CourseIntroduceController {
    @Resource
    private ICourseIntroduceService service;

    /**
     * 根据id查询数据
     * @param id
     * @return
     */
    @GetMapping("/findOne/{id}")
    public CourseIntroduce findOne(@PathVariable("id") Integer id){
        return service.getById(id);
    }

}

